<?php
namespace Home\Controller;
use Think\Controller;
class ScanController extends Controller {
	public function index(){
		$jssdk = new \Org\Net\Jssdk(c('appid'), c('appsecret'));
		$signPackage = $jssdk->GetSignPackage();
		$this->assign('appId',$signPackage["appId"]);
		$this->assign('timestamp',$signPackage["timestamp"]);		
		$this->assign('nonceStr',$signPackage["nonceStr"]);
		$this->assign('signature',$signPackage["signature"]);
		$this->display();
	}

}